package cn.da.shuai.cool.finance.model;

import cn.da.shuai.cool.common.entity.EntityBase;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;

/**
 * <p>
 * 财务指标表
 * </p>
 *
 * @author 大帅哥
 * @since 2023-05-01
 */
@Getter
@Setter
@TableName("cool_financial_indicator")
@Schema(name = "CoolFinancialIndicator", description = "财务指标表")
public class CoolFinancialIndicator extends EntityBase {

    @Schema(description = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "指标名称")
    @TableField("indicator_name")
    private String indicatorName;

    @Schema(description = "指标值")
    @TableField("indicator_value")
    private BigDecimal indicatorValue;

    @Schema(description = "计算期间（格式：YYYY-MM）")
    @TableField("calculation_period")
    private String calculationPeriod;

    @Schema(description = "指标类型：PROFITABILITY-盈利能力，LIQUIDITY-流动性，SOLVENCY-偿债能力，OPERATIONAL-营运能力")
    @TableField("indicator_type")
    private String indicatorType;
}